﻿using Pay.Data;
using Pay.DTO;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.IService
{
    public interface IWXVerificationCodeService
    {
        /// <summary>
        /// 获得微信验证码列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        PagedResult<wx_verification_code_dto> GetWXVerificationCodes(WXVerificationCodeQuery query);

        /// <summary>
        /// 获得微信验证码
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        wx_verification_code_dto GetWXVerificationCode(long id);


        /// <summary>
        /// 新增微信验证码
        /// </summary>
        /// <param name="wxOpenId"></param>
        /// <returns></returns>
        WXVerificationCode GetOrAddWXCode(string wxOpenId);

    }
}
